package www.shuang.orders.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import www.shuang.common.util.PageInfoUtil;
import www.shuang.orders.pojo.AOrders;
import www.shuang.orders.pojo.AOrdersHistory;
import www.shuang.orders.pojo.AOrdersPay;
import www.shuang.orders.pojo.AOrdersPayHistory;

public interface AOrdersService
{
	AOrders findOneAOrdersService(Map<String,Object> condMap);
	List<AOrders> findCondListAOrdersService(PageInfoUtil pageInfoUtil,Map<String,Object> condMap);
	//插入一条记录
	JSONObject insertOneAOrdersService(AOrders orders);
	//更新一条记录
	JSONObject updateOneAOrdersService(AOrders orders);
	//删除一条记录
	JSONObject deleteOneAOrdersService(AOrders orders);
	//订单操作历史开始
	List<AOrders> findCondListOrdersService(PageInfoUtil pageInfoUtil ,Map<String, Object> condMap);
	JSONObject insertOneOrdersHistoryService(AOrdersHistory ordersHistory);
	JSONObject updateOneOrdersHistoryService(AOrdersHistory ordersHistory);
	AOrdersHistory findOneOrdersHistoryService(Map<String, Object> condMap);
	List<AOrdersHistory> findCondListOrdersHistoryService(PageInfoUtil pageInfoUtil ,Map<String, Object> condMap);
	//
	//订单账单操作开始
	AOrdersPay findOneOrdersPayService(Map<String, Object> condMap);
	List<AOrdersPay> findCondListOrdersPayService(PageInfoUtil pageInfoUtil ,Map<String, Object> condMap);
	/* ---- 订单子账单支付历史操作开始 ---- */
	AOrdersPayHistory findOneOrdersPayHistoryService(Map<String, Object> condMap);
	List<AOrdersPayHistory> findCondListOrdersPayHistoryService(PageInfoUtil pageInfoUtil ,Map<String, Object> condMap);
}
